import request from '@/utils/request'

// 查看状态
export function listStatus(query) {
  return request({
    url: '/admin/status/',
    method: 'get',
    params: query
  })
}

// 添加状态
export function addStatus(data) {
  return request({
    url: '/admin/status/',
    method: 'post',
    data: data
  })
}

// 修改状态
export function updateStatus(data) {
    return request({
        url: `/admin/status/${data.id}/`,
        method: 'put',
        data: data
      })
}


// 删除状态
export function delStatus(query) {
  return request({
    url: `/admin/status/${query}/`,
    method: 'delete',
  })
}

